<?php
$file_name=__DIR__."/2.txt";
$content=date("Y-m-d H:i:s").PHP_EOL;

swoole_async_write($file_name, $content, -1, function($filename){
    echo $filename." success".PHP_EOL;
});
echo 'end'.PHP_EOL;